import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App';
import { ConfigProvider, theme } from 'antd';
import zhCN from 'antd/es/locale/zh_CN';

ReactDOM.createRoot(document.getElementById('root')).render(
  <React.StrictMode>
    <ConfigProvider
      locale={zhCN}
      theme={{
        algorithm: [theme.darkAlgorithm, theme.compactAlgorithm],
        components: {
          Segmented: {
            motionDurationSlow: 0,
            colorBgElevated: 'transparent',
          },
          Tooltip: {},
        },
        token: {
          colorPrimary: '#ff8018',
          colorBgContainer: 'transparent',
          borderRadius: 6,
        },
      }}
    >
      <App />
    </ConfigProvider>
  </React.StrictMode>
);
